package com.fcscs.cservice.domain;

import com.fcscs.core.domain.HistoricalEntity;
import com.fcscs.cservice.common.CServiceCommonEnums.ModuleEnum;
import com.fcscs.cservice.common.CServiceCommonEnums.VersionEntityTypeEnum;

public class Advertisement extends HistoricalEntity implements VersionableEntity {

	private static final long serialVersionUID = 1L;

	private Integer bannerImageId;
	private String url;
	private Integer displayOrder;
	private String module;
	private long versionId;

	public Advertisement() {
	}

	@Override
	public DBLoc getDBLoc() {
		return DBLoc.GUEST;
	}

	public Integer getBannerImageId() {
		return bannerImageId;
	}

	public void setBannerImageId(Integer bannerImageId) {
		this.bannerImageId = bannerImageId;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public Integer getDisplayOrder() {
		return displayOrder;
	}

	public void setDisplayOrder(Integer displayOrder) {
		this.displayOrder = displayOrder;
	}

	public String getModule() {
		return module;
	}

	public void setModule(String module) {
		this.module = module;
	}

	public long getVersionId() {
		return versionId;
	}

	public void setVersionId(long versionId) {
		this.versionId = versionId;
	}

	@Override
	public ModuleEnum getModuleEnum() {
		return ModuleEnum.ADVERTISEMENT;
	}

	@Override
	public VersionEntityTypeEnum getEntityTypeEnum() {
		return VersionEntityTypeEnum.ADVERTISEMENT;
	}
	
	@Override
	public Long getEntityId() {
		return getId();
	}
}
